package cn.itcast.service;

import cn.itcast.entity.PageResult;
import cn.itcast.entity.QueryPageBean;
import cn.itcast.entity.Result;
import cn.itcast.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {


    /**
     *
     * @return
     */
    List<Member> findAll();

    /**
     *
     * @param id
     * @return
     */
     Member findById(Integer id);

    /**
     *
     * @param member
     */
   void add(Member member);

    /**
     *
     * @param currentPage
     * @param pageSize
     * @param
     * @return
     */
    PageResult pageQuery(Integer currentPage, Integer pageSize,String QueryString);

    /**
     *
     * @param member
     * @return
     */
   Integer update(Member member);

    /**
     *
     * @param id
     * @param status
     */
   Boolean updateStatus( Integer id,Integer status);



    /**
     * 根据手机号查询会员信息
     * @param phone
     * @return
     */
    Member findByTelephone(String phone);

    /**
     * 添加会员信息
     * @param member
     */
    //void add(Member member);
}
